import { GetSearchParam, isPc } from 'utils/tool'
import cookie from "js-cookie"

export const toPc = () => {
  let isFromSaas = GetSearchParam('from');
  let HOST = window.location.host;
  let ISNOWATERSIGN = GetSearchParam('nw') || ''; // 无水印图的标识
  let ACTIVITYNO = cookie.get('activity_no');
  let flag = isPc()
  
  if (flag && isFromSaas !== 'saas') {
    window.location.href = '//' + HOST + '/activity/live/pc/' + ACTIVITYNO + '/#/' + ISNOWATERSIGN;
  }
}
